home *** CD-ROM | disk | FTP | other *** search
- on progBar loopNum
- set theDiv to the text of member "repeatNum"
- set theNudge to 270 / theDiv
- if the width of sprite 22 = 270 then
- nothing()
- else
- set the width of sprite 22 to loopNum * theNudge
- set the floatPrecision to 2
- set p to float(loopNum) / float(theDiv)
- set p to integer(p * 100)
- put "(" & p & "%)" into field "Percentage"
- updateStage()
- end if
- end
-